<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>sanbbdom-demo</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }
    #container {
      width: 1000px;
      margin: 0 auto;
    }

    h1 {
      /* margin-top: 30px; */
      line-height: 2;
    }

    .btn-group {
      /* border: 1px solid #eee;
      border-radius: 5px; */
    }

    .btn {
      margin: 0;
      border: 1px solid #eee;
      border-radius: 5px;
      min-width: 100px;
      display: inline-block;
      font-size: 20px;
      padding: 5px 10px;
      cursor: pointer;
      text-align: center;
    }
    .btn.active {
      background-color: turquoise;
      color: #fff;
    }

    .add {
      float: right;
      margin-right: 30px;
    }

    .list {
      margin: 30px 0;
    }
    .list .list-item {
      display: flex;
      position: relative;
      padding: 10px 20px;
      align-items: center;
      border: 1px solid #eee;
      border-bottom: 0;
    }
    .list .list-item:last-child {
      border: 1px solid #eee;
    }
    .list .list-item div {
      flex: 1 0;
    }

    .list .list-item .rank {
      flex-basis: 10%;
    }
    .list .list-item .title {
      flex-basis: 30%;
      font-weight: bold;
    }
    .list .list-item .desc {
      flex-basis: 60%;
    }
    .list .list-item div.rm-btn {
      position: absolute;
      right: 0;
      top: 5px;
      width: 30px;
      height: 30px;
      line-height: 30px;
      color: #f00;
      margin-right: 0;
      text-align: center;
      font-size: 18px;
      cursor: pointer;
      border-radius: 50%;
    }
    .list .list-item div.rm-btn:hover {
      background: turquoise;
      color: #fff;
    }
  </style>
</head>

<body>
  <div id="container">
    <!-- <h1>Top 10 movies</h1>
    <div class="opt">
      Sort by:
      <span class="btn-group ">
        <span class="btn rank active">Rank</span>
        <span class="btn title">Title</span>
        <span class="btn desc">Description</span>
      </span>
      <span class="btn add">Add</span>
    </div>

    <ul class="list">
      <li class="list-item">
          <div class="rank">12</div>
          <div class="title">Fight Club</div>
          <div class="desc">An insomniac office worker looking for a way to change his life crosses paths with a devil-may-care soap
            maker and they form an underground fight club that evolves into something much, much more...</div>
          <div class="rm-btn">x</div>
      </li>
    </ul> -->
  </div>
  <script src="./src/index.js"></script>
</body>

</html>